package com.recommend.service.Customer.impl;

import com.recommend.domain.UserDomain;
import com.recommend.persistence.UserDomainMapper;
import com.recommend.service.Customer.CustomerService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.slf4j.Logger;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by lw.
 */
@Service
@Transactional
public class CustomerServiceImpl implements CustomerService {

    private final static Logger logger = org.slf4j.LoggerFactory.getLogger(CustomerServiceImpl.class);

    @Resource
    private UserDomainMapper userDomainMapper;

    @Override
    public UserDomain select(UserDomain userDomain) {
        return userDomainMapper.selectSelective(userDomain);
    }

    @Override
    public List<UserDomain> list(UserDomain userDomain) {
        return userDomainMapper.selectListSelective(userDomain);
    }
    @Override
    public List<UserDomain> getAllUser() {
        return userDomainMapper.selectAll();
    }

	@Override
	public UserDomain validateLogin(UserDomain userDomain) {
		return  userDomainMapper.validateLogin(userDomain);
		
	}
}
